package com.ruoyi.chat.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

/**
 * @author WaKy
 * @version 1.0
 * @create 2025/5/19 16 38
 */
@AiService(
        wiringMode = EXPLICIT,
        streamingChatModel = "qwenStreamingChatModel",
        chatMemoryProvider = "chatMemoryProvider"
)
public interface SeparateAssistant {
    // 添加系统提示词
    @SystemMessage(fromResource = "chatqcu_system_prompt.txt",value = "今天是{{current_date}}")
    Flux<String> chat(@MemoryId Long memoryId, @UserMessage String userMessage);
}
